<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/18
 * Time: 15:09
 */
namespace app\admin\validate;

use think\Validate;

class Groups extends Validate
{
    protected $rule = [
        'name' => 'require',
        'pid' => 'require',
        'compolsury_num'=>'require|integer',
        'compolsury_type'=>'require',
        'commercial_num'=>'require|integer',
        'commercial_type'=>'require'
    ];

    protected $message = [
        'name.require' => '渠道名称不能为空',
        'pid.require' => '政策编号不能为空',
        'compolsury_num.require' => '交强险金额不能为空',
        'compolsury_type.require' => '交强险类型不能为空',
        'commercial_num.require' => '商业险金额不能为空',
        'commercial_type.require' => '商业险类型不能为空',
        'compolsury_num.integer' => '交强险金额只能是纯数字',
        'commercial_num.integer' => '商业险金额只能是纯数字',
    ];
}